home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 1.4 KB | 82 lines | [TEXT/MPS ] |
- ;
- ; File: Timer.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__TIMER__') = 'UNDEFINED' THEN
- __TIMER__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
- include 'OSUtils.a'
- ENDIF
- ; include 'MixedMode.a' ;
- ; include 'Memory.a' ;
-
- ; high bit of qType is set if task is active
- kTMTaskActive EQU (1 << 15)
-
- TMTask RECORD 0
- qLink ds.l 1
- qType ds.w 1
- tmAddr ds.l 1
- tmCount ds.l 1
- tmWakeUp ds.l 1
- tmReserved ds.l 1
- sizeof EQU 22
- ENDR
-
- IF GENERATING68K THEN
- _InsTime: OPWORD $A058
- ELSE
- IMPORT InsTime
- ENDIF
-
- IF GENERATING68K THEN
- _InsXTime: OPWORD $A458
- ELSE
- IMPORT InsXTime
- ENDIF
-
- IF GENERATING68K THEN
- _PrimeTime: OPWORD $A05A
- ELSE
- IMPORT PrimeTime
- ENDIF
-
- IF GENERATING68K THEN
- _RmvTime: OPWORD $A059
- ELSE
- IMPORT RmvTime
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _Microseconds
- dc.w $A193
- dc.w $225F
- dc.w $22C8
- dc.w $2280
- EndM
- ELSE
- IMPORT Microseconds
- ENDIF
-
- ENDIF ; __TIMER__
-